package com.erp.erp_servers.CodeGeneration.imp;

import com.erp.erp_dao.CodeGeneration.ICodeGenerationDAO;
import com.erp.erp_entitys.CodeGeneration.CodeGenerationEntity;
import com.erp.erp_entitys.CodeGeneration.CodeGenerationExample;
import com.erp.erp_servers.CodeGeneration.ICodeGenerationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpCodeGenerationService implements ICodeGenerationService {
    @Autowired
    ICodeGenerationDAO codeGenerationDAO;
    @Override
    public long countByExample(CodeGenerationExample example) {
        return codeGenerationDAO.countByExample(example);
    }

    @Override
    public int deleteByExample(CodeGenerationExample example) {
        return codeGenerationDAO.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return codeGenerationDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CodeGenerationEntity record) {
        return codeGenerationDAO.insert(record);
    }

    @Override
    public int insertSelective(CodeGenerationEntity record) {
        return codeGenerationDAO.insertSelective(record);
    }

    @Override
    public List<CodeGenerationEntity> selectByExample(CodeGenerationExample example) {
        return codeGenerationDAO.selectByExample(example);
    }

    @Override
    public CodeGenerationEntity selectByPrimaryKey(Integer id) {
        return codeGenerationDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(CodeGenerationEntity record, CodeGenerationExample example) {
        return codeGenerationDAO.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(CodeGenerationEntity record, CodeGenerationExample example) {
        return codeGenerationDAO.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(CodeGenerationEntity record) {
        return codeGenerationDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CodeGenerationEntity record) {
        return codeGenerationDAO.updateByPrimaryKey(record);
    }
}
